package com.eight.group.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.eight.group.pojo.Order;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.sql.Date;

/**
 * @author：xingquanxiang createTime：2019/11/19 14:01
 * description: 预约列表VO
 */
@Setter
@Getter
@ToString
public class OrderAndMemberVO extends Order {
    private String fileNo;
    private String name; //姓名
    private String phoneNumber;
    @JSONField(format="yyyy-MM-dd")
    private Date orderDateVO;//预约日期
    private String setmealName;
    private String siteName;

    public OrderAndMemberVO(Integer id, Integer memberId, String orderType, String orderStatus, Integer setmealId, Date orderDateVO, String fileNo, String name, String phoneNumber) {
        super(id, memberId, orderType, orderStatus, setmealId);
        this.fileNo = fileNo;
        this.name = name;
        this.phoneNumber = phoneNumber;
        this.orderDateVO = orderDateVO;
    }

    public OrderAndMemberVO(Date orderDate, String orderType, String orderStatus, String fileNo, String name, String phoneNumber, String setmealName, String siteName) {
        super(orderDate, orderType, orderStatus);
        this.fileNo = fileNo;
        this.name = name;
        this.phoneNumber = phoneNumber;
        this.setmealName = setmealName;
        this.siteName = siteName;
    }
}
